package com.vanke.kotlin_mvp.addedit

import com.vanke.kotlin_mvp.BasePresenter
import com.vanke.kotlin_mvp.BaseView

/**
 * @name Kotlin_MVP
 * @package name：com.vanke.kotlin_mvp.addedit
 * @class describe
 * @anthor shiyuchuan
 * @time 2017/8/22 16:52
 */
interface AddEditTaskContract{

    interface View : BaseView<Presenter>{
        fun showEmptyTaskError()

        fun showTasksList()

        fun setTitle(title: String)

        fun setDescription(description: String)

        var isActive: Boolean

    }


    interface Presenter : BasePresenter{
        fun saveTask(title: String,description: String)

        fun populateTask()

        var isDataMissing: Boolean
    }
}